<?php
Class Inventory_model extends CI_Model {

  function savearticleunityfile($IDType, $Serial, $Model, $Plate, $Features, $Comments, $DateIn, $DateExp, $Donation) {
    $sql = "Save_Article_Unity '$articleid', '$articlename', '$articletype', '$articledescription', '$articlefeatures', '$articlecomments', '$articleimage'"; 
    $this->db->query($sql);
    return $this->db->insert_id();
  }

  function savearticlepayment($IDArticle, $TipoPago, $PaymentNum, $Provider, $InvoiceNum) {
    $sql = "Save_Article_Unity '$articleid', '$articlename', '$articletype', '$articledescription', '$articlefeatures', '$articlecomments', '$articleimage'"; 
    $this->db->query($sql);
    return $query->num_rows();
  }

}
?>